curl --request POST \
--url https://agent-prod.studio.lyzr.ai/v3/agents/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Customer Support Agent",
"description": "Handles level 1 customer inquiries.",
"agent_role": "<string>",
"agent_instructions": "<string>",
"agent_goal": "<string>",
"agent_context": "<string>",
"agent_output": "<string>",
"examples": "<string>",
"features": [
"<string>"
],
"tools": [
"<string>"
],
"tool_usage_description": "<string>",
"llm_credential_id": "<string>",
"response_format": {},
"provider_id": "openai",
"model": "gpt-4o",
"top_p": 1,
"temperature": 0.7,
"managed_agents": [
{
"id": "<string>",
"name": "<string>",
"usage_description": "<string>"
}
],
"tool_configs": [
{
"tool_name": "<string>",
"tool_source": "<string>",
"action_names": [
"<string>"
],
"persist_auth": false,
"server_id": "<string>",
"provider_uuid": "<string>",
"credential_id": "<string>"
}
],
"store_messages": true,
"file_output": false,
"a2a_tools": [
{
"base_url": "<string>"
}
],
"voice_config": {},
"additional_model_params": {},
"image_output_config": {
"model": "<string>",
"credential_id": "<string>"
},
"max_iterations": 25,
"git_agent": {
"enabled": false,
"repo_name": "<string>",
"branch": "main",
"environments": [
"<string>"
],
"branches": [
"<string>"
],
"reviewers": [
"<string>"
],
"pat": "<string>",
"org": "<string>",
"provider": "github",
"repo_url": "<string>",
"repo_full_name": "<string>"
},
"proxy_config": {
"enabled": false,
"endpoint_url": "<string>",
"api_key": "<string>",
"system_prompt_captured": false,
"parameter_policies": {},
"passthrough_tools": true,
"passthrough_tool_choice": true,
"passthrough_response_format": true
}
}
'